﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:BusinessEntities="clr-namespace:DotBeer.Business.Entities;assembly=DotBeer.Business.Entities">
    <DataTemplate x:Key="ItemDataTemplate" DataType="{x:Type BusinessEntities:ItemHero}">
        <Border Background="{DynamicResource BrushControlBackgroundLight}" 
                BorderBrush="{DynamicResource ImpassiveColor4}" 
                BorderThickness="{DynamicResource ThicknessSize_1}" 
                CornerRadius="{DynamicResource CornerRadiusSmall}" 
                Padding="5,5,5,5">
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding Path=ImagePath}" Width="30" Height="30"/>
                <TextBlock Text="{Binding Path=Name}" Margin="5,0,0,0" VerticalAlignment="Center" />
            </StackPanel>
        </Border>
    </DataTemplate>
    <DataTemplate x:Key="SkillDataTemplate" DataType="{x:Type BusinessEntities:Skill}">
        <Border Background="{DynamicResource BrushControlBackgroundLight}" 
                BorderBrush="{DynamicResource ImpassiveColor4}" 
                BorderThickness="{DynamicResource ThicknessSize_1}" 
                CornerRadius="{DynamicResource CornerRadiusSmall}" 
                Padding="5,5,5,5">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=Name}" VerticalAlignment="Center" />
            </StackPanel>
        </Border>
    </DataTemplate>
</ResourceDictionary>